home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / esc / ESCFileRepository.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.1 KB  |  27 lines

  1. package com.extensibility.esc;
  2.  
  3. import java.io.File;
  4. import java.util.Hashtable;
  5.  
  6. public class ESCFileRepository {
  7.    protected Hashtable allFiles = new Hashtable();
  8.  
  9.    public synchronized ESCDocument.ESCFile factoryESCFile(File var1, boolean var2) {
  10.       ESCDocument.ESCFile var3 = (ESCDocument.ESCFile)this.allFiles.get(var1.getAbsolutePath());
  11.       if (var3 == null) {
  12.          var3 = new ESCDocument.ESCFile(var1.getAbsolutePath(), var2);
  13.          this.allFiles.put(var1.getAbsolutePath(), var3);
  14.       }
  15.  
  16.       return var3;
  17.    }
  18.  
  19.    public synchronized void removeESCFile(File var1) {
  20.       String var2 = var1.getAbsolutePath();
  21.       if (this.allFiles.containsKey(var2)) {
  22.          this.allFiles.remove(var2);
  23.       }
  24.  
  25.    }
  26. }
  27.